package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Like;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {
    User register(User user);
    User login(String email,String password);

    /**
     * 此更新不修改密码和邮箱
     * @param user
     */
    User update(User user);

    PageInfo getList(QueryObject qo);

    List<Like> selectLikeByAuthorId(Long id);

    User get(Long id);

    void putFans(Long id);

    List<User> getFans(Long id);

    List<User> getAttention(Long id);

    User getUserById(Long id);

    int getNoReadLikeByAuthorId(Long id);

    void setLikeHasReadByAuthorId(Long id);
}
